<?php
/**
 * API返回json数据
 */
function returnJson($code = 200, $msg = 'success', $data = [])
{
    echo json_encode(["code" => $code, 'msg' => $msg, 'data' => $data]);
    die;
}
